<!DOCTYPE html>
<html lang="zh-CN">
    <head>
	<meta name="generator" content="Hugo 0.86.0" />
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="robots" content="noodp" />
        <title>欢迎来到SY的博客</title><meta name="description" content="专注记笔记"><meta property="og:title" content="欢迎来到SY的博客" />
<meta property="og:description" content="专注记笔记" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://acking-you.gitee.io/" /><meta property="og:image" content="https://acking-you.gitee.io/logo.png"/>

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="https://acking-you.gitee.io/logo.png"/>

<meta name="twitter:title" content="欢迎来到SY的博客"/>
<meta name="twitter:description" content="专注记笔记"/>
<meta name="application-name" content="FeelIt">
<meta name="apple-mobile-web-app-title" content="FeelIt"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="canonical" href="https://acking-you.gitee.io/" /><link rel="alternate" href="/index.xml" type="application/rss+xml" title="欢迎来到SY的博客">
    <link rel="feed" href="/index.xml" type="application/rss+xml" title="欢迎来到SY的博客"><link rel="stylesheet" href="/css/home.min.css"><script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "WebSite",
        "url": "https:\/\/acking-you.gitee.io\/","inLanguage": "zh-CN","description": "专注记笔记","name": "欢迎来到SY的博客"
    }
    </script></head><body data-header-desktop="auto" data-header-mobile="auto"><script>(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('auto' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : 'auto' === 'dark')) && document.body.setAttribute('theme', 'dark');</script>

        <div id="mask"></div><div class="wrapper"><header class="desktop" id="header-desktop">
    <div class="header-wrapper">
        <div class="header-title">
            <a href="/" title="欢迎来到SY的博客">欢迎来到SY的博客</a>
        </div>
        <div class="menu">
            <div class="menu-inner"><a class="menu-item" href="/posts/"> 文章 </a><a class="menu-item" href="/tags/"> 标签 </a><a class="menu-item" href="/categories/"> 分类 </a><span class="menu-item delimiter"></span><span class="menu-item search" id="search-desktop">
                        <input type="text" placeholder="搜索文章标题或内容..." id="search-input-desktop">
                        <a href="#" class="search-button search-toggle" id="search-toggle-desktop" title="搜索">
                            <i class="fas fa-search fa-fw"></i>
                        </a>
                        <a href="#" class="search-button search-clear" id="search-clear-desktop" title="清空">
                            <i class="fas fa-times-circle fa-fw"></i>
                        </a>
                        <span class="search-button search-loading" id="search-loading-desktop">
                            <i class="fas fa-spinner fa-fw fa-spin"></i>
                        </span>
                    </span><a href="javascript:void(0);" class="menu-item theme-switch" title="切换主题">
                    <i class="fas fa-adjust fa-fw"></i>
                </a>
            </div>
        </div>
    </div>
</header><header class="mobile" id="header-mobile">
    <div class="header-container">
        <div class="header-wrapper">
            <div class="header-title">
                <a href="/" title="欢迎来到SY的博客">欢迎来到SY的博客</a>
            </div>
            <div class="menu-toggle" id="menu-toggle-mobile">
                <span></span><span></span><span></span>
            </div>
        </div>
        <div class="menu" id="menu-mobile"><div class="search-wrapper">
                    <div class="search mobile" id="search-mobile">
                        <input type="text" placeholder="搜索文章标题或内容..." id="search-input-mobile">
                        <a href="#" class="search-button search-toggle" id="search-toggle-mobile" title="搜索">
                            <i class="fas fa-search fa-fw"></i>
                        </a>
                        <a href="#" class="search-button search-clear" id="search-clear-mobile" title="清空">
                            <i class="fas fa-times-circle fa-fw"></i>
                        </a>
                        <span class="search-button search-loading" id="search-loading-mobile">
                            <i class="fas fa-spinner fa-fw fa-spin"></i>
                        </span>
                    </div>
                    <a href="#" class="search-cancel" id="search-cancel-mobile">
                        取消
                    </a>
                </div><a class="menu-item" href="/posts/" title="">文章</a><a class="menu-item" href="/tags/" title="">标签</a><a class="menu-item" href="/categories/" title="">分类</a><div class="menu-item"><a href="javascript:void(0);" class="theme-switch" title="切换主题">
                    <i class="fas fa-adjust fa-fw"></i>
                </a>
            </div></div>
    </div>
</header><div class="search-dropdown desktop">
    <div id="search-dropdown-desktop"></div>
</div>
<div class="search-dropdown mobile">
    <div id="search-dropdown-mobile"></div>
</div><main class="main">
                <div class="container"><div class="page home" data-home="posts"><div class="home-profile"><div class="home-avatar"><a href="/posts/" title="文章"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img2.woyaogexing.com/2019/04/27/a8322a40f63b40f79f5300d7fd75bf18!400x400.jpeg"
        data-srcset="https://img2.woyaogexing.com/2019/04/27/a8322a40f63b40f79f5300d7fd75bf18!400x400.jpeg, https://img2.woyaogexing.com/2019/04/27/a8322a40f63b40f79f5300d7fd75bf18!400x400.jpeg 1.5x, https://img2.woyaogexing.com/2019/04/27/a8322a40f63b40f79f5300d7fd75bf18!400x400.jpeg 2x"
        data-sizes="auto"
        alt="https://img2.woyaogexing.com/2019/04/27/a8322a40f63b40f79f5300d7fd75bf18!400x400.jpeg"
        title="https://img2.woyaogexing.com/2019/04/27/a8322a40f63b40f79f5300d7fd75bf18!400x400.jpeg" /></a></div><h1 class="home-title"><div style='color: rgb(153, 153, 153)'>学习如逆水行舟，不进则退！</div></h1><div class="home-subtitle"><div id="id-1" class="typeit"></div></div><div class="links"><a href="https://github.com/jjking20010901" title="GitHub" target="_blank" rel="noopener noreffer me"><i class="fab fa-github-alt fa-fw"></i></a><a href="https://space.bilibili.com/527557278" title="bilibili" target="_blank" rel="noopener noreffer me"><i data-svg-src="/lib/simple-icons/icons/bilibili.min.svg"></i></a></div></div>
<div class="summary-card"><article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A5%C3%A7%C2%BA%C3%A6%C3%A5-%C3%A5%C3%A8%C2%AA%C3%A6-/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/6q/wallhaven-6qw6x6.jpg"
        data-srcset="https://w.wallhaven.cc/full/6q/wallhaven-6qw6x6.jpg, https://w.wallhaven.cc/full/6q/wallhaven-6qw6x6.jpg 1.5x, https://w.wallhaven.cc/full/6q/wallhaven-6qw6x6.jpg 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/6q/wallhaven-6qw6x6.jpg"
        title="多级折叠导航栏" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A5%C3%A7%C2%BA%C3%A6%C3%A5-%C3%A5%C3%A8%C2%AA%C3%A6-/">多级折叠导航栏</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-09-04">2022-09-04</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/qtwidget%E9%A1%B9%E7%9B%AE/"><i class="far fa-folder fa-fw"></i>QtWidget项目</a></span></div><a class="content" href="/posts/%C3%A5%C3%A7%C2%BA%C3%A6%C3%A5-%C3%A5%C3%A8%C2%AA%C3%A6-/">1、多级折叠导航栏效果展示 2、效果特点 支持多级菜单显示 支持鼠标滚动效果 菜单可折叠 可嵌套在项目中 3、实现思路 该导航栏是以QTreeWidget</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E5%A4%9A%E7%BA%A7%E6%8A%98%E5%8F%A0%E5%AF%BC%E8%88%AA%E6%A0%8F/">多级折叠导航栏</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A6%C3%A8%C3%A4%C2%AA%C3%A8%C3%A7/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/4g/wallhaven-4g2zx3.jpg"
        data-srcset="https://w.wallhaven.cc/full/4g/wallhaven-4g2zx3.jpg, https://w.wallhaven.cc/full/4g/wallhaven-4g2zx3.jpg 1.5x, https://w.wallhaven.cc/full/4g/wallhaven-4g2zx3.jpg 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/4g/wallhaven-4g2zx3.jpg"
        title="汽车仪表盘" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A6%C3%A8%C3%A4%C2%AA%C3%A8%C3%A7/">汽车仪表盘</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-30">2022-08-30</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/qtwidget%E8%87%AA%E7%BB%98%E6%8E%A7%E4%BB%B6/"><i class="far fa-folder fa-fw"></i>QtWidget自绘控件</a></span></div><a class="content" href="/posts/%C3%A6%C3%A8%C3%A4%C2%AA%C3%A8%C3%A7/">1、汽车仪表盘效果图 上面是通过QPainter绘制出来的汽车仪表盘，可能与真实的汽车仪表盘有些差距，但总体来说还可以吧，下面将会详细讲解如何</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E6%B1%BD%E8%BD%A6%E4%BB%AA%E8%A1%A8%E7%9B%98/">汽车仪表盘</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A5%C3%A7-%C3%A5%C3%A5%C2%BA%C3%A5%C2%BA/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/dg/wallhaven-dgv23j.png"
        data-srcset="https://w.wallhaven.cc/full/dg/wallhaven-dgv23j.png, https://w.wallhaven.cc/full/dg/wallhaven-dgv23j.png 1.5x, https://w.wallhaven.cc/full/dg/wallhaven-dgv23j.png 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/dg/wallhaven-dgv23j.png"
        title="像素刻度尺" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A5%C3%A7-%C3%A5%C3%A5%C2%BA%C3%A5%C2%BA/">像素刻度尺</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-27">2022-08-27</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/qtwidget%E8%87%AA%E7%BB%98%E6%8E%A7%E4%BB%B6/"><i class="far fa-folder fa-fw"></i>QtWidget自绘控件</a></span></div><a class="content" href="/posts/%C3%A5%C3%A7-%C3%A5%C3%A5%C2%BA%C3%A5%C2%BA/">1、QPainter 在QTWidget中，通常通过QPainter以及QPaintEvent(绘图事件)来完成自绘控件。 QPainter提供</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E5%83%8F%E7%B4%A0%E5%88%BB%E5%BA%A6%E5%B0%BA/">像素刻度尺</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A6%C3%A4%C3%A5%C3%A9/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/kw/wallhaven-kwqqkq.jpg"
        data-srcset="https://w.wallhaven.cc/full/kw/wallhaven-kwqqkq.jpg, https://w.wallhaven.cc/full/kw/wallhaven-kwqqkq.jpg 1.5x, https://w.wallhaven.cc/full/kw/wallhaven-kwqqkq.jpg 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/kw/wallhaven-kwqqkq.jpg"
        title="条件变量" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A6%C3%A4%C3%A5%C3%A9/">条件变量</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-24">2022-08-24</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/cpp%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%82%E6%AD%A5%E4%B8%8E%E5%B9%B6%E5%8F%91/"><i class="far fa-folder fa-fw"></i>CPP多线程异步与并发</a></span></div><a class="content" href="/posts/%C3%A6%C3%A4%C3%A5%C3%A9/">1、std::condition_variable 条件变量是 C++11 提供的另外一种用于等待的同步机制，它能阻塞一个或多个线程，直到收到另外一个线程</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E6%9D%A1%E4%BB%B6%E5%8F%98%E9%87%8F/">条件变量</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A4%C2%BA%C3%A6%C3%A9/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/dp/wallhaven-dplz6l.jpg"
        data-srcset="https://w.wallhaven.cc/full/dp/wallhaven-dplz6l.jpg, https://w.wallhaven.cc/full/dp/wallhaven-dplz6l.jpg 1.5x, https://w.wallhaven.cc/full/dp/wallhaven-dplz6l.jpg 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/dp/wallhaven-dplz6l.jpg"
        title="互斥量" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A4%C2%BA%C3%A6%C3%A9/">互斥量</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-23">2022-08-23</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/cpp%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%82%E6%AD%A5%E4%B8%8E%E5%B9%B6%E5%8F%91/"><i class="far fa-folder fa-fw"></i>CPP多线程异步与并发</a></span></div><a class="content" href="/posts/%C3%A4%C2%BA%C3%A6%C3%A9/">1、数据竞争 两个线程试图往同一个数组中放数据，程序直接崩溃了，这是为什么呢？ 假设vector容器的长度为4，但是现在线程1想要额外追加数据，</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E4%BA%92%E6%96%A5%E9%87%8F/">互斥量</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A5%C3%A7%C2%BA%C3%A7%C3%A5%C3%A6api%C3%A8%C3%A8/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/zx/wallhaven-zx6p8g.png"
        data-srcset="https://w.wallhaven.cc/full/zx/wallhaven-zx6p8g.png, https://w.wallhaven.cc/full/zx/wallhaven-zx6p8g.png 1.5x, https://w.wallhaven.cc/full/zx/wallhaven-zx6p8g.png 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/zx/wallhaven-zx6p8g.png"
        title="多线程异步API解读" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A5%C3%A7%C2%BA%C3%A7%C3%A5%C3%A6api%C3%A8%C3%A8/">多线程异步API解读</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-23">2022-08-23</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/cpp%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%82%E6%AD%A5%E4%B8%8E%E5%B9%B6%E5%8F%91/"><i class="far fa-folder fa-fw"></i>CPP多线程异步与并发</a></span></div><a class="content" href="/posts/%C3%A5%C3%A7%C2%BA%C3%A7%C3%A5%C3%A6api%C3%A8%C3%A8/">1、std::async std::async是C++11中多线程异步处理的API，当将lambda表达式传入时，它会自动创建一个线程，并且自</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%82%E6%AD%A5api%E8%A7%A3%E8%AF%BB/">多线程异步API解读</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/thread%C3%A7%C3%A4%C3%A7/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/9m/wallhaven-9m2pww.jpg"
        data-srcset="https://w.wallhaven.cc/full/9m/wallhaven-9m2pww.jpg, https://w.wallhaven.cc/full/9m/wallhaven-9m2pww.jpg 1.5x, https://w.wallhaven.cc/full/9m/wallhaven-9m2pww.jpg 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/9m/wallhaven-9m2pww.jpg"
        title="thread的使用" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/thread%C3%A7%C3%A4%C3%A7/">thread的使用</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-21">2022-08-21</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/cpp%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%82%E6%AD%A5%E4%B8%8E%E5%B9%B6%E5%8F%91/"><i class="far fa-folder fa-fw"></i>CPP多线程异步与并发</a></span></div><a class="content" href="/posts/thread%C3%A7%C3%A4%C3%A7/">浅谈进程和线程 进程：一个应用程序被操作系统拉起来加载到内存之后开始执行结束的这样一个过程。简单来说，进程就是一个可执行程序(*.exe)。比</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/thread%E7%9A%84%E4%BD%BF%E7%94%A8/">thread的使用</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A6-%C3%A5%C3%A6%C3%A9%C3%A5%C2%BA%C3%A4thread/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/2319540b52ba53f88ff0afbf5cabb92c.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/2319540b52ba53f88ff0afbf5cabb92c.png#pic_center, https://img-blog.csdnimg.cn/img_convert/2319540b52ba53f88ff0afbf5cabb92c.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/2319540b52ba53f88ff0afbf5cabb92c.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/2319540b52ba53f88ff0afbf5cabb92c.png#pic_center"
        title="标准时间库与thread" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A6-%C3%A5%C3%A6%C3%A9%C3%A5%C2%BA%C3%A4thread/">标准时间库chrono</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-21">2022-08-21</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/cpp%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%82%E6%AD%A5%E4%B8%8E%E5%B9%B6%E5%8F%91/"><i class="far fa-folder fa-fw"></i>CPP多线程异步与并发</a></span></div><a class="content" href="/posts/%C3%A6-%C3%A5%C3%A6%C3%A9%C3%A5%C2%BA%C3%A4thread/">前言 在这个专栏中我将会讲解C++11中所用的多线程异步与并发相关的知识点，在C++98的时候，C++内部并没有封装与多线程有关的API，只能</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4%E5%BA%93chrono/">标准时间库chrono</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A5-%C3%A4%C2%BA%C3%A6%C2%BA%C3%A8%C3%A6%C3%A9/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://w.wallhaven.cc/full/6q/wallhaven-6qo8jw.png"
        data-srcset="https://w.wallhaven.cc/full/6q/wallhaven-6qo8jw.png, https://w.wallhaven.cc/full/6q/wallhaven-6qo8jw.png 1.5x, https://w.wallhaven.cc/full/6q/wallhaven-6qo8jw.png 2x"
        data-sizes="auto"
        alt="https://w.wallhaven.cc/full/6q/wallhaven-6qo8jw.png"
        title="共享智能指针" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A5-%C3%A4%C2%BA%C3%A6%C2%BA%C3%A8%C3%A6%C3%A9/">共享智能指针</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-19">2022-08-19</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/c++11%E7%9A%84%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>C++11的学习</a></span></div><a class="content" href="/posts/%C3%A5-%C3%A4%C2%BA%C3%A6%C2%BA%C3%A8%C3%A6%C3%A9/">智能指针的简介 在C++中没有垃圾回收机制，必须自己释放分配内存，否则就会造成内存泄漏。解决这个问题最有效的方法是使用智能指针(smart po</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E5%85%B1%E4%BA%AB%E6%99%BA%E8%83%BD%E6%8C%87%E9%92%88/">共享智能指针</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A8%C2%BA%C3%A6%C3%A7%C3%A9%C2%B5%C3%A2-/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/6a656bf83ac631cc9afaeaef07661809.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/6a656bf83ac631cc9afaeaef07661809.png#pic_center, https://img-blog.csdnimg.cn/img_convert/6a656bf83ac631cc9afaeaef07661809.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/6a656bf83ac631cc9afaeaef07661809.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/6a656bf83ac631cc9afaeaef07661809.png#pic_center"
        title="螺旋矩阵Ⅱ" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A8%C2%BA%C3%A6%C3%A7%C3%A9%C2%B5%C3%A2-/">螺旋矩阵Ⅱ</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-17">2022-08-17</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/%E7%AE%97%E6%B3%95%E7%9A%84%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>算法的深度学习</a></span></div><a class="content" href="/posts/%C3%A8%C2%BA%C3%A6%C3%A7%C3%A9%C2%B5%C3%A2-/">螺旋矩阵II 力扣题目链接 给定一个正整数n，生成一个包含1到n^2的所有元素，且元素按顺时针顺序螺旋排列的n*n正方形矩阵matrix。 示例1</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E8%9E%BA%E6%97%8B%E7%9F%A9%E9%98%B5/">螺旋矩阵Ⅱ</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A5%C3%A5%C3%A5%C3%A7%C3%A5%C3%A5%C3%A7%C3%A8%C3%A5/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/c592952aec4e1c875073f2a3d970cde5.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/c592952aec4e1c875073f2a3d970cde5.png#pic_center, https://img-blog.csdnimg.cn/img_convert/c592952aec4e1c875073f2a3d970cde5.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/c592952aec4e1c875073f2a3d970cde5.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/c592952aec4e1c875073f2a3d970cde5.png#pic_center"
        title="右值引用和完美转发" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A5%C3%A5%C3%A5%C3%A7%C3%A5%C3%A5%C3%A7%C3%A8%C3%A5/">右值引用和完美转发</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-16">2022-08-16</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/c++11%E7%9A%84%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>C++11的学习</a></span></div><a class="content" href="/posts/%C3%A5%C3%A5%C3%A5%C3%A7%C3%A5%C3%A5%C3%A7%C3%A8%C3%A5/">1、右值引用的简介 C++11增加了一个新的类型，称为右值引用(R-value reference)，标记为 **&amp;&amp;。**在介绍</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E5%8F%B3%E5%80%BC%E5%BC%95%E7%94%A8%E5%92%8C%E5%AE%8C%E7%BE%8E%E8%BD%AC%E5%8F%91/">右值引用和完美转发</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A9%C3%A5%C2%BA%C3%A6%C3%A5%C3%A7%C3%A5%C3%A6%C3%A7/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/385f4cc39feda8590ef42f86b38207ba.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/385f4cc39feda8590ef42f86b38207ba.png#pic_center, https://img-blog.csdnimg.cn/img_convert/385f4cc39feda8590ef42f86b38207ba.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/385f4cc39feda8590ef42f86b38207ba.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/385f4cc39feda8590ef42f86b38207ba.png#pic_center"
        title="长度最小的子数组" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A9%C3%A5%C2%BA%C3%A6%C3%A5%C3%A7%C3%A5%C3%A6%C3%A7/">长度最小的子数组</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-16">2022-08-16</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/%E7%AE%97%E6%B3%95%E7%9A%84%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>算法的深度学习</a></span></div><a class="content" href="/posts/%C3%A9%C3%A5%C2%BA%C3%A6%C3%A5%C3%A7%C3%A5%C3%A6%C3%A7/">长度最小的子数组 力扣题目链接 给定一个含有n个正整数的数组和一个正整数target，找出该数组中满足其和&gt;=target的长度最小的连续</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E9%95%BF%E5%BA%A6%E6%9C%80%E5%B0%8F%E7%9A%84%E5%AD%90%E6%95%B0%E7%BB%84/">长度最小的子数组</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A4%C2%BA%C3%A5%C3%A6%C3%A6/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/c644e86b92d93fcc4173c23ce127e625.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/c644e86b92d93fcc4173c23ce127e625.png#pic_center, https://img-blog.csdnimg.cn/img_convert/c644e86b92d93fcc4173c23ce127e625.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/c644e86b92d93fcc4173c23ce127e625.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/c644e86b92d93fcc4173c23ce127e625.png#pic_center"
        title="二分查找" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A4%C2%BA%C3%A5%C3%A6%C3%A6/">二分查找</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-15">2022-08-15</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/%E7%AE%97%E6%B3%95%E7%9A%84%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>算法的深度学习</a></span></div><a class="content" href="/posts/%C3%A4%C2%BA%C3%A5%C3%A6%C3%A6/">二分查找 力扣题目链接 给定一个n个元素有序的(升序)整数型数组nums和一个目标值target，写一个函数搜素nums中的target，如果目</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE/">二分查找</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A7%C3%A9%C3%A5-%C3%A7-/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/cfdaf87ba57fa1099a94d87809378cbb.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/cfdaf87ba57fa1099a94d87809378cbb.png#pic_center, https://img-blog.csdnimg.cn/img_convert/cfdaf87ba57fa1099a94d87809378cbb.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/cfdaf87ba57fa1099a94d87809378cbb.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/cfdaf87ba57fa1099a94d87809378cbb.png#pic_center"
        title="移除元素" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A7%C3%A9%C3%A5-%C3%A7-/">移除元素</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-15">2022-08-15</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/%E7%AE%97%E6%B3%95%E7%9A%84%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>算法的深度学习</a></span></div><a class="content" href="/posts/%C3%A7%C3%A9%C3%A5-%C3%A7-/">移除元素 力扣题目链接 给你一个数组nums和一个值val，需要原地移除所有数组等于val的元素，并返回移除后数组的新长度。 不要使用额外的数组空</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E7%A7%BB%E9%99%A4%E5%85%83%E7%B4%A0/">移除元素</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/final%C3%A5override/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/acea126d07748d6630f37b1b481e5d73.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/acea126d07748d6630f37b1b481e5d73.png#pic_center, https://img-blog.csdnimg.cn/img_convert/acea126d07748d6630f37b1b481e5d73.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/acea126d07748d6630f37b1b481e5d73.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/acea126d07748d6630f37b1b481e5d73.png#pic_center"
        title="final和override" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/final%C3%A5override/">final和override</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-14">2022-08-14</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/c++11%E7%9A%84%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>C++11的学习</a></span></div><a class="content" href="/posts/final%C3%A5override/">1、final C++中增加了final关键字来限制某个类不能被继承，或者某个虚函数不能被重写，和Java的final关键字的功能是类似的。如</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/final%E5%92%8Coverride/">final和override</a></li></ul></div>
</article>
<article class="summary" itemscope itemtype="http://schema.org/Article" ><div class="featured-image-preview">
            <a href="/posts/%C3%A6%C3%A6%C3%A7%C3%A4%C3%A5/"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/img_convert/e5259f24f6a5a7fb2331d3fd0d18e631.png#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/img_convert/e5259f24f6a5a7fb2331d3fd0d18e631.png#pic_center, https://img-blog.csdnimg.cn/img_convert/e5259f24f6a5a7fb2331d3fd0d18e631.png#pic_center 1.5x, https://img-blog.csdnimg.cn/img_convert/e5259f24f6a5a7fb2331d3fd0d18e631.png#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/img_convert/e5259f24f6a5a7fb2331d3fd0d18e631.png#pic_center"
        title="模板的优化" /></a>
        </div><h2 class="single-title" itemprop="name headline">
        <a href="/posts/%C3%A6%C3%A6%C3%A7%C3%A4%C3%A5/">模板的优化</a>
    </h2><div class="post-meta"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2022-08-14">2022-08-14</time></span>&nbsp;<span class="post-category">包括在 <a href="/categories/c++11%E7%9A%84%E5%AD%A6%E4%B9%A0/"><i class="far fa-folder fa-fw"></i>C++11的学习</a></span></div><a class="content" href="/posts/%C3%A6%C3%A6%C3%A7%C3%A4%C3%A5/">1、模板的右尖括号 在泛型编程中，模板实例化有一个非常繁琐的地方，那就是连续的两个右尖括号(&raquo;)会被编译器解析成为右移操作符，而不</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/%E6%A8%A1%E6%9D%BF%E7%9A%84%E4%BC%98%E5%8C%96/">模板的优化</a></li></ul></div>
</article>
<ul class="pagination"><li class="page-item active">
                    <span class="page-link">
                        <a href="/">1</a>
                    </span>
                </li><li class="page-item ">
                    <span class="page-link">
                        <a href="/page/2/">2</a>
                    </span>
                </li></ul></div></div></div>
            </main>
            <footer class="footer"><div class="footer-container"><div class="footer-line">由 <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.86.0">Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/khusika/FeelIt" target="_blank" rel="noopener noreffer" title="FeelIt 1.0.1"><i class="fas fa-hand-holding-heart fa-fw"></i> FeelIt</a>
        </div><div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"><i class="far fa-copyright fa-fw"></i><span itemprop="copyrightYear">2022</span><span class="author" itemprop="copyrightHolder">&nbsp;<a href="/"></a></span></div>
</div>
</footer>
        </div>

        <div id="fixed-buttons"><a href="#" id="back-to-top" class="fixed-button" title="回到顶部">
                <i class="fas fa-chevron-up fa-fw"></i>
            </a></div><link rel="stylesheet" href="/lib/fontawesome-free/all.min.css"><link rel="stylesheet" href="/lib/animate/animate.min.css"><script src="/lib/autocomplete/autocomplete.min.js"></script><script src="/lib/lunr/lunr.min.js"></script><script src="/lib/lunr/lunr.stemmer.support.min.js"></script><script src="/lib/lunr/lunr.zh.min.js"></script><script src="/lib/lazysizes/lazysizes.min.js"></script><script src="/lib/typeit/typeit.min.js"></script><script>window.config={"code":{"maxShownLines":200},"data":{"id-1":"\u003cdiv style='color: rgb(153, 153, 153)'\u003e独属于\u003ca href='https://subingwen.cn/categories/C/'\u003eSY学习\u003c/a\u003e 的笔记小站\u003c/div\u003e"},"search":{"highlightTag":"em","lunrIndexURL":"/index.json","lunrLanguageCode":"zh","lunrSegmentitURL":"/lib/lunr/lunr.segmentit.js","maxResultLength":100,"noResultsFound":"没有找到结果","snippetLength":50,"type":"lunr"},"typeit":{"cursorChar":null,"cursorSpeed":null,"data":{"id-1":["id-1"]},"duration":null,"speed":null}};</script><script src="/js/theme.min.js"></script></body></html>
